
import { Injectable, Injector } from '@angular/core';
import { NgRepository } from '@farris/devkit';
import { BefRepository, NgVariable } from '@farris/bef';
import { XmxxEntity } from './entities/xmxxentity';

import { XmxxProxy } from './xmxxproxy';

@Injectable()
@NgRepository({
    apiUrl: 'api/basicdata/basicdata/v1.0/xmlx_frm',
    entityType: XmxxEntity
})
export class XmxxRepository extends BefRepository<XmxxEntity> {
    public name = 'XmxxRepository';

    public proxy: XmxxProxy;
    public paginationInfo = {
        XmxxEntity: {
            pageSize: 20,
        }
    };
    constructor(injector: Injector) {
        super(injector);
        this.proxy = injector.get(XmxxProxy, null);
    }
}